 /*
 Title: Texto en consola                  		Filename: textoconsola.s
  Author: Reyes González Rigoberto					Date:  15 /  03 / 2017
  Description: Mostrar texto ingresado en consola
  Input: -
  Output: Texto en consola
 */


.section    .bss
.comm buffer, 48 @ reservando 48 bytes de buffer 

.section      .data



msg:
      .ascii "**Greeter **\n Favor de ingresar tu nombre"
      msgLen= . - msg
      msg2:
        .ascii "HOLA"
      msg2Len= . - msg2
      
      .section      .text
      .globl  _start 
      _start:
      
      mov r0, $1
      ldr r1,=msg 
      ldr r2,=msgLen
      mov r7,$4
      svc $0
      
      mov r7,$3
      mov r0,$1
      ldr r1,=buffer
      mov r2,$0x30
      svc $0
      
      
      mov r0, $1
      ldr r1, =msg2 
      ldr r2, =msg2Len
      mov r7, $4
      svc $0
      
      
      
      mov r0,$1
      ldr r1,=buffer
      mov r2,$0x30
      svc $0
      
      mov r7, $1
      svc $0
      .end
